package com.wanczy.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wanczy.pojo.Address;
import com.wanczy.pojo.Order;

public interface OrderMapper {
	//查询用户的发货地址
	public List<Address> queryAddress(Integer userId);
	//形成订单
	public int addOrder(Order order);
	//修改库存
	public int desGoodsNum(@Param("goodsId") Integer goodsId,@Param("orderNum") Integer orderNum);
	//用户金额减少
	public int updUserBalance(@Param("userId") Integer userId,@Param("userBalance") Integer userBalance);
	//商家金额增加
	//public int updShopBalance(@Param("shop") Integer userId,@Param("userBalance") Integer userBalance);
}
